import request from '@/utils/request'

export function add(data) {
  return request.post('buss/wfButton/add', data)
}

export function edit(data) {
  return request.post('buss/wfButton/edit', data)
}

export function findOne(data) {
  return request.get('buss/wfButton/findOne?id=' + data)
}

export function del(data) {
  return request.post('buss/wfButton/del', data)
}

export async function listPage(data) {
  return request.post('buss/wfButton/listPage', data)
}

export function listBtn(param) {
  return request.post('buss/wfButton/listBtn', param)
}

export default {add, del, findOne, edit, listPage, listBtn}
